package com.yangxf.cloud.controller;

import com.yangxf.springcloud.entities.Payment;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.*;

import java.util.UUID;

@RestController
@Slf4j
public class PaymentContoller {

    @Value("${server.port}")
    private String port;

    @GetMapping(value = "/consumer/consul")
    public String paymentConsul(){
        return "consul:" + port + "\t" + UUID.randomUUID().toString();
    }
}
